home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Estrategia / coffeetycoon_Demo.swf / scripts / DefineButton2_1323 / BUTTONCONDACTION on(rollOver).as < prev   
Encoding:
Text File  |  2006-06-13  |  508 b   |  16 lines

  1. on(rollOver){
  2.    if(_root.antstats[_root.gc_nest] >= parseInt(_root.antstats[_root.gc_pop] * _root.maxnestsize * 0.6))
  3.    {
  4.       this.good._visible = true;
  5.    }
  6.    else if(_root.antstats[_root.gc_nest] < parseInt(_root.antstats[_root.gc_pop] * _root.maxnestsize * 0.3))
  7.    {
  8.       this.bad._visible = true;
  9.    }
  10.    else
  11.    {
  12.       this.neutral._visible = true;
  13.    }
  14.    trace("nest = " + _root.antstats[_root.gc_nest] + "  comparing to " + _root.antstats[_root.gc_pop] * _root.maxnestsize);
  15. }
  16.